package main

import "fmt"

func defer_sum(num1, num2 int) int {
	defer fmt.Println("defer1 : ", num1)
	defer fmt.Println("defer2 : ", num2)

	num1++
	num2--

	res := num1 + num2
	fmt.Println("sum res : ", res)
	return res
}

func main() {
	res := defer_sum(10 ,20)
	fmt.Println("main : ", res)
}